package org.jeecg.modules.wangyue.entity;

import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;

/**
 * @Description: 资金流水表
 * @Author: jeecg-boot
 * @Date:   2023-06-30
 * @Version: V1.0
 */
@Data
@TableName("tb_capital_flow")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="tb_capital_flow对象", description="资金流水表")
public class CapitalFlow {
    
	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
	private String id;
	/**用户id*/
	@Excel(name = "用户id", width = 15)
    @ApiModelProperty(value = "用户id")
	private String userId;
	/**登录账号*/
	@Excel(name = "登录账号", width = 15)
	@ApiModelProperty(value = "登录账号")
	private String account;
	/**用户类型*/
	@Excel(name = "用户类型", width = 15)
    @ApiModelProperty(value = "用户类型")
	private String userType;
	/**变动类型(0-充值，1-消费，2-退款，3-提现，4-订单收入，11-平台分佣转入，12-平台业绩转入，15-积分兑换)*/
	@Excel(name = "变动类型(0-充值，1-消费，2-退款，3-提现，4-订单收入，11-平台分佣转入，12-平台业绩转入，15-积分兑换)", width = 15)
    @ApiModelProperty(value = "变动类型(0-充值，1-消费，2-退款，3-提现，4-订单收入，11-平台分佣转入，12-平台业绩转入，15-积分兑换)")
	private String changeType;
	/**变动名称*/
	@Excel(name = "变动名称", width = 15)
    @ApiModelProperty(value = "变动名称")
	private String changeName;
	/**变动前金额*/
	@Excel(name = "变动前金额", width = 15)
    @ApiModelProperty(value = "变动前金额")
	private java.math.BigDecimal beforeChangeAmount;
	/**变动金额*/
	@Excel(name = "变动金额", width = 15)
    @ApiModelProperty(value = "变动金额")
	private java.math.BigDecimal changeAmount;
	/**变动后金额*/
	@Excel(name = "变动后金额", width = 15)
    @ApiModelProperty(value = "变动后金额")
	private java.math.BigDecimal afterChangeAmount;
	/**金额增减(0-增加,1-减少)*/
	@Excel(name = "金额增减(0-增加,1-减少)", width = 15)
	@ApiModelProperty(value = "金额增减(0-增加,1-减少)")
	private String upOrDown;
	/**删除状态(0-正常,1-已删除)*/
	@Excel(name = "删除状态(0-正常,1-已删除)", width = 15)
    @ApiModelProperty(value = "删除状态(0-正常,1-已删除)")
	private String delFlag;
	/**创建时间*/
	@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
	private Date createTime;
	/**更新时间*/
	@Excel(name = "更新时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
	private Date updateTime;


	@ApiModelProperty(value = "多个id逗号隔开")
	@TableField(exist = false)
	private String ids;
	@ApiModelProperty(value = "关键字")
	@TableField(exist = false)
	private String keywords;
	@ApiModelProperty(value = "开始时间")
	@TableField(exist = false)
	private String beginTime;
	@ApiModelProperty(value = "结束时间")
	@TableField(exist = false)
	private String endTime;

}
